/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.cmc.service.merchant.model;

import com.liferay.portal.model.ModelWrapper;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * This class is a wrapper for {@link AgentEntry}.
 * </p>
 *
 * @author    ntcuong1
 * @see       AgentEntry
 * @generated
 */
public class AgentEntryWrapper implements AgentEntry, ModelWrapper<AgentEntry> {
	public AgentEntryWrapper(AgentEntry agentEntry) {
		_agentEntry = agentEntry;
	}

	public Class<?> getModelClass() {
		return AgentEntry.class;
	}

	public String getModelClassName() {
		return AgentEntry.class.getName();
	}

	public Map<String, Object> getModelAttributes() {
		Map<String, Object> attributes = new HashMap<String, Object>();

		attributes.put("agentId", getAgentId());
		attributes.put("creatorUserId", getCreatorUserId());
		attributes.put("companyId", getCompanyId());
		attributes.put("createDate", getCreateDate());
		attributes.put("modifiedDate", getModifiedDate());
		attributes.put("type", getType());
		attributes.put("code", getCode());
		attributes.put("firstName", getFirstName());
		attributes.put("middleName", getMiddleName());
		attributes.put("lastName", getLastName());
		attributes.put("prefixId", getPrefixId());
		attributes.put("suffixId", getSuffixId());
		attributes.put("male", getMale());
		attributes.put("birthdayMonth", getBirthdayMonth());
		attributes.put("birthdayYear", getBirthdayYear());
		attributes.put("birthdayDay", getBirthdayDay());
		attributes.put("jobTitle", getJobTitle());
		attributes.put("email", getEmail());
		attributes.put("merchantId", getMerchantId());
		attributes.put("loginable", getLoginable());
		attributes.put("userId", getUserId());
		attributes.put("screenName", getScreenName());

		return attributes;
	}

	public void setModelAttributes(Map<String, Object> attributes) {
		Long agentId = (Long)attributes.get("agentId");

		if (agentId != null) {
			setAgentId(agentId);
		}

		Long creatorUserId = (Long)attributes.get("creatorUserId");

		if (creatorUserId != null) {
			setCreatorUserId(creatorUserId);
		}

		Long companyId = (Long)attributes.get("companyId");

		if (companyId != null) {
			setCompanyId(companyId);
		}

		Date createDate = (Date)attributes.get("createDate");

		if (createDate != null) {
			setCreateDate(createDate);
		}

		Date modifiedDate = (Date)attributes.get("modifiedDate");

		if (modifiedDate != null) {
			setModifiedDate(modifiedDate);
		}

		String type = (String)attributes.get("type");

		if (type != null) {
			setType(type);
		}

		String code = (String)attributes.get("code");

		if (code != null) {
			setCode(code);
		}

		String firstName = (String)attributes.get("firstName");

		if (firstName != null) {
			setFirstName(firstName);
		}

		String middleName = (String)attributes.get("middleName");

		if (middleName != null) {
			setMiddleName(middleName);
		}

		String lastName = (String)attributes.get("lastName");

		if (lastName != null) {
			setLastName(lastName);
		}

		Integer prefixId = (Integer)attributes.get("prefixId");

		if (prefixId != null) {
			setPrefixId(prefixId);
		}

		Integer suffixId = (Integer)attributes.get("suffixId");

		if (suffixId != null) {
			setSuffixId(suffixId);
		}

		Boolean male = (Boolean)attributes.get("male");

		if (male != null) {
			setMale(male);
		}

		Integer birthdayMonth = (Integer)attributes.get("birthdayMonth");

		if (birthdayMonth != null) {
			setBirthdayMonth(birthdayMonth);
		}

		Integer birthdayYear = (Integer)attributes.get("birthdayYear");

		if (birthdayYear != null) {
			setBirthdayYear(birthdayYear);
		}

		Integer birthdayDay = (Integer)attributes.get("birthdayDay");

		if (birthdayDay != null) {
			setBirthdayDay(birthdayDay);
		}

		String jobTitle = (String)attributes.get("jobTitle");

		if (jobTitle != null) {
			setJobTitle(jobTitle);
		}

		String email = (String)attributes.get("email");

		if (email != null) {
			setEmail(email);
		}

		Long merchantId = (Long)attributes.get("merchantId");

		if (merchantId != null) {
			setMerchantId(merchantId);
		}

		Boolean loginable = (Boolean)attributes.get("loginable");

		if (loginable != null) {
			setLoginable(loginable);
		}

		Long userId = (Long)attributes.get("userId");

		if (userId != null) {
			setUserId(userId);
		}

		String screenName = (String)attributes.get("screenName");

		if (screenName != null) {
			setScreenName(screenName);
		}
	}

	/**
	* Returns the primary key of this agent entry.
	*
	* @return the primary key of this agent entry
	*/
	public long getPrimaryKey() {
		return _agentEntry.getPrimaryKey();
	}

	/**
	* Sets the primary key of this agent entry.
	*
	* @param primaryKey the primary key of this agent entry
	*/
	public void setPrimaryKey(long primaryKey) {
		_agentEntry.setPrimaryKey(primaryKey);
	}

	/**
	* Returns the agent ID of this agent entry.
	*
	* @return the agent ID of this agent entry
	*/
	public long getAgentId() {
		return _agentEntry.getAgentId();
	}

	/**
	* Sets the agent ID of this agent entry.
	*
	* @param agentId the agent ID of this agent entry
	*/
	public void setAgentId(long agentId) {
		_agentEntry.setAgentId(agentId);
	}

	/**
	* Returns the creator user ID of this agent entry.
	*
	* @return the creator user ID of this agent entry
	*/
	public long getCreatorUserId() {
		return _agentEntry.getCreatorUserId();
	}

	/**
	* Sets the creator user ID of this agent entry.
	*
	* @param creatorUserId the creator user ID of this agent entry
	*/
	public void setCreatorUserId(long creatorUserId) {
		_agentEntry.setCreatorUserId(creatorUserId);
	}

	/**
	* Returns the creator user uuid of this agent entry.
	*
	* @return the creator user uuid of this agent entry
	* @throws SystemException if a system exception occurred
	*/
	public java.lang.String getCreatorUserUuid()
		throws com.liferay.portal.kernel.exception.SystemException {
		return _agentEntry.getCreatorUserUuid();
	}

	/**
	* Sets the creator user uuid of this agent entry.
	*
	* @param creatorUserUuid the creator user uuid of this agent entry
	*/
	public void setCreatorUserUuid(java.lang.String creatorUserUuid) {
		_agentEntry.setCreatorUserUuid(creatorUserUuid);
	}

	/**
	* Returns the company ID of this agent entry.
	*
	* @return the company ID of this agent entry
	*/
	public long getCompanyId() {
		return _agentEntry.getCompanyId();
	}

	/**
	* Sets the company ID of this agent entry.
	*
	* @param companyId the company ID of this agent entry
	*/
	public void setCompanyId(long companyId) {
		_agentEntry.setCompanyId(companyId);
	}

	/**
	* Returns the create date of this agent entry.
	*
	* @return the create date of this agent entry
	*/
	public java.util.Date getCreateDate() {
		return _agentEntry.getCreateDate();
	}

	/**
	* Sets the create date of this agent entry.
	*
	* @param createDate the create date of this agent entry
	*/
	public void setCreateDate(java.util.Date createDate) {
		_agentEntry.setCreateDate(createDate);
	}

	/**
	* Returns the modified date of this agent entry.
	*
	* @return the modified date of this agent entry
	*/
	public java.util.Date getModifiedDate() {
		return _agentEntry.getModifiedDate();
	}

	/**
	* Sets the modified date of this agent entry.
	*
	* @param modifiedDate the modified date of this agent entry
	*/
	public void setModifiedDate(java.util.Date modifiedDate) {
		_agentEntry.setModifiedDate(modifiedDate);
	}

	/**
	* Returns the type of this agent entry.
	*
	* @return the type of this agent entry
	*/
	public java.lang.String getType() {
		return _agentEntry.getType();
	}

	/**
	* Sets the type of this agent entry.
	*
	* @param type the type of this agent entry
	*/
	public void setType(java.lang.String type) {
		_agentEntry.setType(type);
	}

	/**
	* Returns the code of this agent entry.
	*
	* @return the code of this agent entry
	*/
	public java.lang.String getCode() {
		return _agentEntry.getCode();
	}

	/**
	* Sets the code of this agent entry.
	*
	* @param code the code of this agent entry
	*/
	public void setCode(java.lang.String code) {
		_agentEntry.setCode(code);
	}

	/**
	* Returns the first name of this agent entry.
	*
	* @return the first name of this agent entry
	*/
	public java.lang.String getFirstName() {
		return _agentEntry.getFirstName();
	}

	/**
	* Sets the first name of this agent entry.
	*
	* @param firstName the first name of this agent entry
	*/
	public void setFirstName(java.lang.String firstName) {
		_agentEntry.setFirstName(firstName);
	}

	/**
	* Returns the middle name of this agent entry.
	*
	* @return the middle name of this agent entry
	*/
	public java.lang.String getMiddleName() {
		return _agentEntry.getMiddleName();
	}

	/**
	* Sets the middle name of this agent entry.
	*
	* @param middleName the middle name of this agent entry
	*/
	public void setMiddleName(java.lang.String middleName) {
		_agentEntry.setMiddleName(middleName);
	}

	/**
	* Returns the last name of this agent entry.
	*
	* @return the last name of this agent entry
	*/
	public java.lang.String getLastName() {
		return _agentEntry.getLastName();
	}

	/**
	* Sets the last name of this agent entry.
	*
	* @param lastName the last name of this agent entry
	*/
	public void setLastName(java.lang.String lastName) {
		_agentEntry.setLastName(lastName);
	}

	/**
	* Returns the prefix ID of this agent entry.
	*
	* @return the prefix ID of this agent entry
	*/
	public int getPrefixId() {
		return _agentEntry.getPrefixId();
	}

	/**
	* Sets the prefix ID of this agent entry.
	*
	* @param prefixId the prefix ID of this agent entry
	*/
	public void setPrefixId(int prefixId) {
		_agentEntry.setPrefixId(prefixId);
	}

	/**
	* Returns the suffix ID of this agent entry.
	*
	* @return the suffix ID of this agent entry
	*/
	public int getSuffixId() {
		return _agentEntry.getSuffixId();
	}

	/**
	* Sets the suffix ID of this agent entry.
	*
	* @param suffixId the suffix ID of this agent entry
	*/
	public void setSuffixId(int suffixId) {
		_agentEntry.setSuffixId(suffixId);
	}

	/**
	* Returns the male of this agent entry.
	*
	* @return the male of this agent entry
	*/
	public boolean getMale() {
		return _agentEntry.getMale();
	}

	/**
	* Returns <code>true</code> if this agent entry is male.
	*
	* @return <code>true</code> if this agent entry is male; <code>false</code> otherwise
	*/
	public boolean isMale() {
		return _agentEntry.isMale();
	}

	/**
	* Sets whether this agent entry is male.
	*
	* @param male the male of this agent entry
	*/
	public void setMale(boolean male) {
		_agentEntry.setMale(male);
	}

	/**
	* Returns the birthday month of this agent entry.
	*
	* @return the birthday month of this agent entry
	*/
	public int getBirthdayMonth() {
		return _agentEntry.getBirthdayMonth();
	}

	/**
	* Sets the birthday month of this agent entry.
	*
	* @param birthdayMonth the birthday month of this agent entry
	*/
	public void setBirthdayMonth(int birthdayMonth) {
		_agentEntry.setBirthdayMonth(birthdayMonth);
	}

	/**
	* Returns the birthday year of this agent entry.
	*
	* @return the birthday year of this agent entry
	*/
	public int getBirthdayYear() {
		return _agentEntry.getBirthdayYear();
	}

	/**
	* Sets the birthday year of this agent entry.
	*
	* @param birthdayYear the birthday year of this agent entry
	*/
	public void setBirthdayYear(int birthdayYear) {
		_agentEntry.setBirthdayYear(birthdayYear);
	}

	/**
	* Returns the birthday day of this agent entry.
	*
	* @return the birthday day of this agent entry
	*/
	public int getBirthdayDay() {
		return _agentEntry.getBirthdayDay();
	}

	/**
	* Sets the birthday day of this agent entry.
	*
	* @param birthdayDay the birthday day of this agent entry
	*/
	public void setBirthdayDay(int birthdayDay) {
		_agentEntry.setBirthdayDay(birthdayDay);
	}

	/**
	* Returns the job title of this agent entry.
	*
	* @return the job title of this agent entry
	*/
	public java.lang.String getJobTitle() {
		return _agentEntry.getJobTitle();
	}

	/**
	* Sets the job title of this agent entry.
	*
	* @param jobTitle the job title of this agent entry
	*/
	public void setJobTitle(java.lang.String jobTitle) {
		_agentEntry.setJobTitle(jobTitle);
	}

	/**
	* Returns the email of this agent entry.
	*
	* @return the email of this agent entry
	*/
	public java.lang.String getEmail() {
		return _agentEntry.getEmail();
	}

	/**
	* Sets the email of this agent entry.
	*
	* @param email the email of this agent entry
	*/
	public void setEmail(java.lang.String email) {
		_agentEntry.setEmail(email);
	}

	/**
	* Returns the merchant ID of this agent entry.
	*
	* @return the merchant ID of this agent entry
	*/
	public long getMerchantId() {
		return _agentEntry.getMerchantId();
	}

	/**
	* Sets the merchant ID of this agent entry.
	*
	* @param merchantId the merchant ID of this agent entry
	*/
	public void setMerchantId(long merchantId) {
		_agentEntry.setMerchantId(merchantId);
	}

	/**
	* Returns the loginable of this agent entry.
	*
	* @return the loginable of this agent entry
	*/
	public boolean getLoginable() {
		return _agentEntry.getLoginable();
	}

	/**
	* Returns <code>true</code> if this agent entry is loginable.
	*
	* @return <code>true</code> if this agent entry is loginable; <code>false</code> otherwise
	*/
	public boolean isLoginable() {
		return _agentEntry.isLoginable();
	}

	/**
	* Sets whether this agent entry is loginable.
	*
	* @param loginable the loginable of this agent entry
	*/
	public void setLoginable(boolean loginable) {
		_agentEntry.setLoginable(loginable);
	}

	/**
	* Returns the user ID of this agent entry.
	*
	* @return the user ID of this agent entry
	*/
	public long getUserId() {
		return _agentEntry.getUserId();
	}

	/**
	* Sets the user ID of this agent entry.
	*
	* @param userId the user ID of this agent entry
	*/
	public void setUserId(long userId) {
		_agentEntry.setUserId(userId);
	}

	/**
	* Returns the user uuid of this agent entry.
	*
	* @return the user uuid of this agent entry
	* @throws SystemException if a system exception occurred
	*/
	public java.lang.String getUserUuid()
		throws com.liferay.portal.kernel.exception.SystemException {
		return _agentEntry.getUserUuid();
	}

	/**
	* Sets the user uuid of this agent entry.
	*
	* @param userUuid the user uuid of this agent entry
	*/
	public void setUserUuid(java.lang.String userUuid) {
		_agentEntry.setUserUuid(userUuid);
	}

	/**
	* Returns the screen name of this agent entry.
	*
	* @return the screen name of this agent entry
	*/
	public java.lang.String getScreenName() {
		return _agentEntry.getScreenName();
	}

	/**
	* Sets the screen name of this agent entry.
	*
	* @param screenName the screen name of this agent entry
	*/
	public void setScreenName(java.lang.String screenName) {
		_agentEntry.setScreenName(screenName);
	}

	public boolean isNew() {
		return _agentEntry.isNew();
	}

	public void setNew(boolean n) {
		_agentEntry.setNew(n);
	}

	public boolean isCachedModel() {
		return _agentEntry.isCachedModel();
	}

	public void setCachedModel(boolean cachedModel) {
		_agentEntry.setCachedModel(cachedModel);
	}

	public boolean isEscapedModel() {
		return _agentEntry.isEscapedModel();
	}

	public java.io.Serializable getPrimaryKeyObj() {
		return _agentEntry.getPrimaryKeyObj();
	}

	public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
		_agentEntry.setPrimaryKeyObj(primaryKeyObj);
	}

	public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
		return _agentEntry.getExpandoBridge();
	}

	public void setExpandoBridgeAttributes(
		com.liferay.portal.service.ServiceContext serviceContext) {
		_agentEntry.setExpandoBridgeAttributes(serviceContext);
	}

	@Override
	public java.lang.Object clone() {
		return new AgentEntryWrapper((AgentEntry)_agentEntry.clone());
	}

	public int compareTo(com.cmc.service.merchant.model.AgentEntry agentEntry) {
		return _agentEntry.compareTo(agentEntry);
	}

	@Override
	public int hashCode() {
		return _agentEntry.hashCode();
	}

	public com.liferay.portal.model.CacheModel<com.cmc.service.merchant.model.AgentEntry> toCacheModel() {
		return _agentEntry.toCacheModel();
	}

	public com.cmc.service.merchant.model.AgentEntry toEscapedModel() {
		return new AgentEntryWrapper(_agentEntry.toEscapedModel());
	}

	@Override
	public java.lang.String toString() {
		return _agentEntry.toString();
	}

	public java.lang.String toXmlString() {
		return _agentEntry.toXmlString();
	}

	public void persist()
		throws com.liferay.portal.kernel.exception.SystemException {
		_agentEntry.persist();
	}

	/**
	 * @deprecated Renamed to {@link #getWrappedModel}
	 */
	public AgentEntry getWrappedAgentEntry() {
		return _agentEntry;
	}

	public AgentEntry getWrappedModel() {
		return _agentEntry;
	}

	public void resetOriginalValues() {
		_agentEntry.resetOriginalValues();
	}

	private AgentEntry _agentEntry;
}